<script setup>
import {ElMessage} from "element-plus";

function click(){
  ElMessage('消息')
}
</script>

<template>
  <el-button @click="click">测试</el-button>
</template>

